package com.example.demo.annotation;

import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;
import org.aspectj.lang.annotation.Aspect;

@Component
@Aspect
public class AUserProxy {

//  @Before(value = "execution(* com.example.demo.annotation.AUser.add())")
//  public void before() { // 前置通知
//    System.out.println("Before ...");
//  }

  @Before(value = "@annotation(ManualAspect)")
  public void before() {
    System.out.println("方法开始执行了");
  }
}
